// 引入工具类
import request from '@/utils/request.js' 
 
const common = {
	getBanner: data => {// 获取token
		return request({
			url: '/wx/banner/list',
			method: 'GET',
			data: data,
			isLoading: false ,//是否需要显示加载动画
			isLogin: false //是否需要登录 需要则带入token
		})
	},
	getCity: data => {// 获取省市
		return request({
			url: '/wx/prov/citypickerJson',
			method: 'GET',
			data: data,
			isLoading: false ,
			isLogin: false 
		})
	},
	getProvJson: data => {// 
		return request({
			url: '/wx/prov/provJson',
			method: 'GET',
			data: data,
			isLoading: true ,
			isLogin: false 
		})
	},
	
	getCityJson: data => {// 
		return request({
			url: '/wx/prov/cityJson',
			method: 'GET',
			data: data,
			isLoading: true ,
			isLogin: false
		})
	},
	
	

}

export default common

